package tk.mybatis.simple.generator.mapper;

import org.apache.ibatis.annotations.CacheNamespaceRef;
import tk.mybatis.simple.generator.model.SysRole;

import java.util.List;

//@CacheNamespace(eviction = FifoCache.class, flushInterval = 60000, size = 512, readWrite = true)
@CacheNamespaceRef(SysRoleMapper.class)
public interface SysRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysRole record);

    SysRole selectByPrimaryKey(Long id);

    List<SysRole> selectAll();

    int updateByPrimaryKey(SysRole record);

    SysRole selectRoleById(Long id);

    List<SysRole> selectAllRoleAndPrivileges();

    List<SysRole> selectRoleByUserId(Long userId);
}